home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Go Sit In The Corner 1.0 / source / cdev code / cdev globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  2.2 KB  |  94 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        cdev globals.h
  4.  
  5. Purpose:    This is the header file for all the structs and enums in
  6.             the cdev.
  7.  
  8.  
  9. Go Sit In The Corner -=- not you, just the cursor
  10. Copyright ©1994, Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. #pragma once
  30.  
  31. struct QDGlobals
  32. {
  33.     char privates[76];
  34.     long randSeed;
  35.     BitMap screenBits;
  36.     Cursor arrow;
  37.     Pattern dkGray;
  38.     Pattern ltGray;
  39.     Pattern gray;
  40.     Pattern black;
  41.     Pattern white;
  42.     GrafPtr thePort;
  43.     long    end;
  44. };
  45.  
  46. typedef struct QDGlobals QDGlobals;
  47.  
  48. typedef struct PrefStruct
  49. {
  50.     unsigned long    numTicks;                /* number of ticks 'til cornering */
  51.     unsigned char    whichCorner;            /* 0=TL, 1=TR, 2=BR, 3=BL */
  52.     unsigned char    always;                    /* always go to corner? */
  53.     unsigned char    showIcon;                /* Show icon on startup? */
  54.     unsigned char    isOn;                    /* Is on? */
  55.     unsigned long    ourCodePtr;                /* pointer to VBL code in memory */
  56.     unsigned long    ourVBLPtr;                /* pointer to VBL structure in memory */
  57. } PrefStruct, *PrefPtr, **PrefHandle;
  58.  
  59. enum
  60. {
  61.     kButtonOn=1,
  62.     kTitleOn,
  63.     kButtonOff,
  64.     kTitleOff,
  65.     kButtonShowIcon,
  66.     kTitleShowIcon,
  67.     kButtonFirstTime=11,
  68.     kButtonLastTime=15,
  69.     kTitleFirstTime,
  70.     kTitleLastTime=20,
  71.     kButtonAlways,
  72.     kButtonOnlyIf,
  73.     kTitleAlways,
  74.     kTitleOnlyIf,
  75.     kButtonTopLeft,
  76.     kButtonTopRight,
  77.     kButtonBottomRight,
  78.     kButtonBottomLeft
  79. };
  80.  
  81. enum
  82. {
  83.     allsWell=0,
  84.     prefs_allsWell=0,
  85.     prefs_diskReadErr,
  86.     prefs_diskWriteErr,
  87.     prefs_cantOpenPrefsErr,
  88.     prefs_cantCreatePrefsErr,
  89.     prefs_virginErr,
  90.     kNoMemory,
  91.     kCantGetResource,
  92.     kCantFindSystemFolder
  93. };
  94.